public class ddd{


	private int kk=10;
	private int arr[]=new int[kk];

	private ddd(){
		for(int i=0;i<arr.length;i++){
			this.arr[i]=i;
		}
	}

	private void show(){
		for(int i=0;i<arr.length;i++)
			System.out.printf(""+this.arr[i]);

		innerclass ww=this.new innerclass();

		while(ww.getnum()){
		//	System.out.printf("g");
			ww.shownum();
		}
		
	}

	private void show_1(int kkkk){
		System.out.println(this.arr[kkkk]);

	}

	private class innerclass {

		private int next=0;

		public boolean getnum(){
		//	System.out.printf("h");
			return next<=(kk-1);
		}


		public void shownum(){
			show_1(next);
			next++;
		}

	}

	public static void main(String a[]){
		
//		System.out.printf("%f"+arr[1]);
		ddd t=new ddd();
		t.show();

	}
}